Problem Note 36888: ISPF statistics might not update when a PDS member is opened and updated in place
SAS® might not update ISPF statistics for a PDS member that is being updated in place.
The ISPF statistics are not changed, even when the FILESTAT option is set.
For example the following code fails to update
the ISPF statistics:
options filestat;
filemane pdslib 'a.pds.library' disp=old;
data _null_;
infile pdslib(pdsmem) sharebufs;
file pdslib(pdsmem);
input @1 var1 $char3.;
if var1='efg';
put 'xyz';
run;
A work around is to read and update the PDS member in two steps.
For example:
filename pdslib 'a.pds.library' disp=old;
options filestat;
data recs;
infile pdslib(pdsmem);
input;
rec=_infile_;
run;
data _null_;
set recs;
file pdslib(pdsmem);
oldlbl=substr(rec,1,3);
chglbl='egf';
newlbl='xyz';
if oldlbl eq chglbl then do;
newrec=rec;
substr(newrec,1,3)=newlbl;
put newrec;
end;
else do;
put rec;
end;
run;
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The ISPF statistics might not update when a PDS member is opened and updated in place, even with the FILESTAT option.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2010-09-14 11:25:57 |
Date Created: | 2009-08-14 16:07:12 |